<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?=$title?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta  http-equiv="description" content="Free open source blog software based on codeigniter.Speedovation.org is the official website of Blogmer, a light and Open Source PHP 4 and MySQL based blog package, distributed freely under the MIT license. Developed with simplicity and usability in mind, Blogmer is ideal for small to medium sized websites which need a clear and efficient blog package." />
<meta http-equiv="keywords" content="Free,open,source,blog,website,codeigniter,web design,speedovation,hosting" />
<meta http-equiv="author" content="Yash Bhardwaj" />
<meta name="robots" content="index, follow, noarchive" />
<meta name="googlebot" content="noarchive" />
<link rel="stylesheet" href="<?=base_url()?>themes/colourise/images/Colourise.css" type="text/css" />

</head>

<body>

<!-- wrap starts here -->
<div id="wrap">

	<!--header -->
	<div id="header">			
				
		<h1 id="logo-text"><a href="<?=base_url()?>" title=""><?=$this->session->userdata('BLOGName')?></a></h1>		
		<p id="intro">
		<?=$this->session->userdata('BLOGTitle')?>
		</p>	
		
		<div  id="nav">
			<ul>
				<li><a href="<?=base_url()?>">Home</a></li>
				<?=$pages?>	
			</ul>		
		</div>	
		
					
				
	<!--header ends-->					
	</div>
	
	<!-- content-wrap starts -->
	<div id="content-wrap">
			<!-- sidebar starts -->
		<div id="sidebar">
		
			  <?php 
			 echo $search_form;
			 echo $categories;
			 echo $archives;
			 echo $users;
			 echo $tag_clouds;			 
			 echo $calendar;
			?>		
						
		<!-- sidebar ends -->		
		</div>	
        
		<div id="main">
				
		<?php   
		switch($where)
		{		
		case 'post':  ?>
         
         <!--single post -->
          <h2><?=$post['title_link']?></h2>
		  <p class="post-info">Posted by <?=$post['author_name']?> | Filed under <?=$post['categories']?> </p>
		  <p><?=$post['content']?></p>
		  <p><?=$post['read_comments']?></p>
		  <p><?=$post['comment_form']?></p>
          
          <!--loop for posts  -->
          <?php	
		  					break; 
			case 'loop':  
		   			for($i=0;$i<count($allposts)-1;$i++)	
					{ $comments=base_url().'blog/post/'.url_title($allposts[$i]['post_title']).'#comments';
		   ?>
			
            
           <h2><?=$allposts[$i]['title_link'];?></h2>
           <p class="post-info">Posted by <?=$allposts[$i]['author_name'];?> | Filed under <?=$allposts[$i]['categories'];?> </p>
			<p><?=$allposts[$i]['content'];?></p>
			<p class="post-footer">
				<a href="<?=$comments?>" class="comments">Comments : <?=$allposts[$i]['comment_no'];?></a> |
				<span class="date"><?=$allposts[$i]['date'];?></span>	
			</p>
            
            
     	<?php	} //end of for loop
		   echo $allposts['last'];
		
							break;
			case 'page':    ?>

            <h2><?=$page['title_link']?></h2>
		    <p><?=$page['content']?></p>
		  
		  <?php break;
		  case 'single':     ?>

           <p><?=$content?></p>

		  <?php break; } ?>

		<!-- main ends -->	
		</div>
		
		
		
	<!-- content-wrap ends-->	
	</div>
		
	<!-- footer starts here -->	
	<div id="footer-wrap"><div id="footer-content">
	
		<div class="col float-left space-sep">
		
			<h3>Latest Entry</h3>
			<?php echo $latest_posts;?>
			
				
		</div>
		
		<div class="col float-left">
		
			<h3>Latest Comment</h3>
			
			
			<?php  echo $latestcomment;	?>
            	
		</div>		
	
		<div class="col2 float-right">
		
			<h3>About</h3>			
			
			<p>Watch and learn. We give picture based tutorials for quicker knowledge.</p>
			
			
			
			<p>
			 © 2008 Speedovation. All rights reserved.&nbsp;&nbsp;  
			
			Powered By : <a href="http://www.speedovation.org/" target="_blank">Blogmer </a> &nbsp;&nbsp;| &nbsp;&nbsp;&nbsp;
            Design by : <a href="http://www.styleshout.com/" target="_blank">styleshout&nbsp;&nbsp;</a> | &nbsp;&nbsp;
			Valid <a href="http://validator.w3.org/check?uri=referer" target="_blank">XHTML</a> | 
			<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank">CSS</a>
			
   		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>				
	
		
		
			<p>						
				<a href="<?=base_url()?>">Home</a> |
				<a href="<?=base_url()?>feed/rss">RSS Feed</a>|
                <a href="<?=base_url()?>feed/atom">ATOM Feed</a>								
			</p>	
			
		</div>		
			
	</div></div>
	<div class="clearer"></div>
	<!-- footer ends here -->

<!-- wrap ends here -->
</div>

</body>
</html>
